<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head th:if= "${category !=null}" th:replace="common::header(${author}+'的小说-'+${name},${author}+'的小说',${description})">
</head>
<body>
<div class="main">
    <div th:replace="common::contentHeader(${name})"></div>
    <div th:replace="common::contentNav"></div>
    <table id="author" class="grid" width="100%" align="center" cellspacing="0" style="border: 1px solid #8D6661" >
	<caption style="color: #666;margin-top: 15px; background: #8D6661; color: #FFF; border-radius: 3px 3px 0px 0px;"><span style="color: #fff; font-weight: bold;" th:text="${author}">author</span>&nbsp;&nbsp;&nbsp;的文章列表</caption>
	  <tr align="left">
	    <th width="20%">文章名称</th>
	    <th width="40%">最新章节</th>
	    <th width="15%">作者</th>
	    <th width="9%">字数</th>
	    <th width="10%">更新</th>
	    <th width="6%">状态</th>
	  </tr>

	  <tr th:each="article:${articleList}">
	    <td class="odd"><a href="/17/17985/" th:href="@{${article.url}}" th:text="${article.articleName}">articleName</a></td>
	    <td class="even"><a href="/17/17985/10986169.html" target="_blank" th:href="@{${article.lastChapterUrl}}"  th:text="${article.lastChapter}" >lastChapter> 第1680章 九百九十九!</a></td>
	    <td class="odd" th:text="${article.author}">author</td>
	    <td class="even" th:text="|${article.size/1000}K|">627K</td>
	    <td class="odd" align="left" th:text="${#dates.format(article.lastUpdate, 'yyyy-MM-dd')}|">2017-12-07</td>
	    <td class="even" align="left" th:text="${article.fullFlag} ? 完结 : 连载中 ">连载中</td>
	  </tr>

	</table>

    <div class="pagelink" id="pagelink" th:if="${articleList.totalPages gt 0}">
        <span id="pagestats" th:text="|${page}/${articleList.totalPages}|">1/288</span>
        <a th:href="@{/articleList(category=${category},page=1)}" class="pgroup">首页</a>
        <a th:if="${page gt 1}" th:href="@{/articleList(category=${category},page=${page-1})}" class="prev">上页</a>
        <a th:each="i:${#numbers.sequence(page-4 , page + 4)}" th:href="@{/articleList(category=${category},page=${i})}" th:text="${i}" th:if="${i ge 1 and i le articleList.totalPages}" >num</a>
        <a th:if="${page lt articleList.totalPages}" th:href="@{/articleList(category=${category},page=${page+1})}" class="next">下页</a>
        <a th:href="@{/articleList(category=${category},page=${articleList.totalPages})}"  class="ngroup">尾页</a>
    </div>
    <div th:replace="common::footer(${copyright},${support})" ></div>
</div>
</body>
</html>